package com.gang.ssm.bos.common;

public class ImageModel {
	
	public static final String PATH_IMAGES = "images";
	
	public static final String IMAGES = "gif,jpg,jpeg,png,bmp";

	public static boolean isImage(String originalFilename) {
		
		try {
			String extName = originalFilename.substring(originalFilename.lastIndexOf(".")+1);
			if(IMAGES.indexOf(extName) != -1) {
				return true;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		
		return false;
	}
	

}
